<% form_for(the_shim, :url => {:action => the_action}, :html => {
    :multipart => true}) do |f| %>
	<%= f.error_messages %>
	<div>
		<%= f.label :name %>
		<%= f.text_field :name %>
	</div>
	<div>
		<%= f.label "Type" %>
		<%= f.select :shim_type, Shim::SHIM_OTHER_TYPES %>
	</div>
  <div>
    <%= f.label "Class" %>
    <%= f.select :shim_class, Shim::SHIM_CLASSES %>
  </div>
	<div id="shim_variable_field">
	  <%= label_tag "File" %>
	  <%= file_field_tag :shim_blob_data %>
	</div>
	 <% if self.controller.action_name=~/new/i %>
    <div>
		  <%= label_tag "Description" %><br />
      <%= text_area_tag :description, nil, :size => "87x5" %>
  	</div>
  <% end %>
	<%= hidden_field_tag 'type', 'file' %>
	<p><%= f.submit 'Save' %></p><br />
<% end %>